  
 <div ng-controller="selectDateCtrl">
  <div id="dateDiv"></div>
  <p>日期仅支持前一周至后一周的时间选择</p>
 </div>


  <script>
  WdatePicker({eCont:'dateDiv',dateFmt:'yyyy-M-d',minDate:'%y-%M-#{%d-7}',maxDate:'%y-%M-#{%d+7}',onpicked:function(dq){
  	selectDateById(dq.cal.getNewDateStr());
  	}
  })
  //得到了当前选择时间
  function selectDateById(ele){
 
  alert(ele);
  
  }

  </script>

<script type="text/javascript">

	app.controller('selectDateCtrl', function($scope, $http,$state) {

	})

</script>
